#ifndef MYTHREAD_H
#define MYTHREAD_H

#include <QThread>
#include <QObject>
#include <QDebug>
class myThread :public QThread
{
public:
    myThread(QObject * parents = nullptr);
    void setMsg(QString);
    void stop();
protected:
    void run();

private:
    QString msg;
    bool flag;
};
#endif // MYTHREAD_H
